<?php 
	include_once("session.php"); 
	include_once("util/message.php");
    include_once("util/constant.php");
    include_once("./service/articleService.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Chi tiết tin tức</title>
<?php include("import.php"); ?>
</head>

<body>

<!-- Wrapper -->
<div class="wrapper">
	<!-- Floating banner -->
    <?php include("floating-banner.php");?>
    <!-- End of floating banner -->
    
	<!-- Top banner -->
	<?php include("header.php");?>
    <!-- End of top banner -->
    
    <!-- Navigator -->
	<?php include("navigator.php");?>
    <!-- End of navigator -->
    
    <!-- Menu, newsletter and search -->
    <?php include("menu.php");?>
    <!-- End of menu, newsletter and search -->
    
    <!-- Content -->
    <div class="wrapper-content">
    
    	<!-- Breadcrumb -->
        <?php include("breadcrumb.php");?>
        <!-- End of breadcrumb -->
        <?php
            $article = getArticle(isset($_GET["a"])?$_GET["a"]:0);
        ?>
    	<div class="wrapper-news-detail">
        	<div class="wrapper-news-detail-title">
            	<div class="news-detail-title"><?php echo $article["ART_TITLE"]; ?></div>
                <div class="news-detail-date"><?php $creation_date = new DateTime($article["ART_CREATIONDATE"]); echo $creation_date->format("d/m/Y") ; ?></div>
            </div>
            <div class="news-detail-content">
                <?php echo $article["ART_CONTENT"]; ?>    
            </div>
        </div>
        
    </div>
    <!-- End of content -->
    
    <!-- Live support -->
        <?php include("live-support.php");?>
    <!-- End of live support -->
    <div class="clear"></div>
	<?php include("footer.php");?>
</div>
<!-- End of wrapper -->
</body>
            <script>
                $(document).ready(function(){                    
                    $.ajax({
            			type: "POST",
            			url: "action/ajax/generateBreadcrumb.php",
            			data: { "a" : <?php echo isset($_GET["a"])?$_GET["a"]:0 ?>},
            			success: function(data){
            				$(".breadcrumb-wrapper").html(data);
            			}
            		});  
                });
            </script>
</html>